SECRET_KEY = ""  # Session加密密钥

# 数据库连接配置
HOSTNAME = ""  # 数据库地址
PORT = ''  # 数据库端口
DATABASE = ""  # 数据库名称
USERNAME = ""  # 用户名
PASSWORD = ""  # 密码
DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI
SQLALCHEMY_TRACK_MODIFICATIONS = False  # 关闭警告

# 邮箱配置
MAIL_SERVER = "smtp.qq.com"  # 邮件服务器-----网易是smtp.163.com，新浪是smtp.sina.com
MAIL_USE_SSL = True  # 启用SSL加密
MAIL_PORT = 465  # SSL端口
MAIL_USERNAME = ""  # 发件邮箱
MAIL_PASSWORD = ""  # 邮箱授权码（非登录密码）
MAIL_DEFAULT_SENDER = ""
